package com.ruoyi.common.core.response;

import lombok.Getter;

/**
 * @description 返回状态码枚举类
 */
@Getter
public enum ResponseEnum {
    SUCCESS_CODE("200", "操作成功!"),
    NO_LOGIN_CODE("401", "您未登录!"),
    AGAIN_TOKEN_CODE("402", "重新生成票据!"),
    NO_PRESSION_CODE("403", "您无权限访问!"),
    NO_SOURCES_CODE("404", "资源不存在!"),
    WARN_CODE("405", "警告"),
    FAIL_CODE("500", "操作失败!");
    private String code;

    private String msg;

    ResponseEnum(String code, String message) {
        this.code = code;
        this.msg = message;
    }
}
